package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.entity.BannerDO;
import com.winshare.saleAssistant.domain.query.BannerQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface BannerMapper {

    int saveBanner(BannerDO bannerDO);

    BannerDO getBanner(BannerDO bannerDO);

    int updateBanner(BannerDO bannerDO);

    int queryBannerCount(BannerQuery bannerQuery);

    List<BannerDO> findBannerListByConditions(BannerQuery bannerQuery);

    int deleteBanner(BannerDO bannerDO);

    int addClickCount(BannerDO bannerDO);
}
